package cn.dapeng.sort;

import cn.dapeng.utils.BuilderArray;

/**
 * 各种排序算法测试用例
 */
public class SortCaseTest {

    public static void main(String[] args) {
        int testTimes = 1;
        for (int i = 0; i < testTimes; i++) {
            int[] array = BuilderArray.builderArray(100, 10);
            HeapSort.sort(array);

            boolean checkResult = BuilderArray.checkAscArray(array);

            if(!checkResult) {
                BuilderArray.print(array);
                System.out.println("Oops");
            }
        }

        System.out.printf("调用%d次%n", testTimes);
    }
}
